package com.qyer.lxp.model.confirm.normal;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * Created by jiangping on 16/6/30.
 */
@XmlRootElement(name = "order-item-status")
@XmlAccessorType(XmlAccessType.FIELD)
public class OrderItemStatus implements Serializable {
    private static final long serialVersionUID = 354032309741545110L;

    /**
     * 分销商的子订项号
     */
    @XmlElement(name = "distributor-order-item-refer")
    private String distributorOrderItemRefer;

    /**
     * 力行的订项 cd
     */
    @XmlElement(name = "order-item-cd")
    private String orderItemCd;

    /**
     * 状态
     */
    @XmlElement(name = "status")
    private int status;

    /**
     * 备注
     */
    @XmlElement(name = "remark")
    private String remark;

    /**
     * 电子凭证的 URL,有可能是网页或 者文件。
     */
    @XmlElementWrapper(name = "voucher-urls")
    @XmlElement(name = "voucher-url")
    private List<String> voucherUrl;

    public String getDistributorOrderItemRefer() {
        return distributorOrderItemRefer;
    }

    public void setDistributorOrderItemRefer(String distributorOrderItemRefer) {
        this.distributorOrderItemRefer = distributorOrderItemRefer;
    }

    public String getOrderItemCd() {
        return orderItemCd;
    }

    public void setOrderItemCd(String orderItemCd) {
        this.orderItemCd = orderItemCd;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<String> getVoucherUrl() {
        return voucherUrl;
    }

    public void setVoucherUrl(List<String> voucherUrl) {
        this.voucherUrl = voucherUrl;
    }

    @Override
    public String toString() {
        return "OrderItemStatus{" +
                "distributorOrderItemRefer='" + distributorOrderItemRefer + '\'' +
                ", orderItemCd='" + orderItemCd + '\'' +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                ", voucherUrl=" + voucherUrl +
                '}';
    }
}
